DevForce Help Reference
Where<TSource>(IEntityQuery<TSource>,Expression<Func<TSource,Boolean>>) Method
Example 


Filters a sequence of values based on a predicate.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Where(Of TSource)( _
   ByVal source1 As IEntityQuery(Of TSource), _
   ByVal predicate As Expression(Of Func(Of TSource,Boolean)) _
) As IEntityQuery(Of TSource)
'Usage
 
Dim source1 As IEntityQuery(Of TSource)
Dim predicate As Expression(Of Func(Of TSource,Boolean))
Dim value As IEntityQuery(Of TSource)
 
value = EntityQueryExtensions.Where(Of TSource)(source1, predicate)

Parameters

source1
predicate

Type Parameters

TSource
Example
var mgr = new DomainModelEntityManager();

var query = mgr.Customers.Where(c => c.Country == "UK");
var list = query.Execute();
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityQueryExtensions Class
EntityQueryExtensions Members
Overload List

Send Feedback